<?php /* Smarty version 2.6.13, created on 2008-11-14 17:23:38
         compiled from rubric_list.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strip_tags', 'rubric_list.tpl', 24, false),array('modifier', 'truncate', 'rubric_list.tpl', 24, false),)), $this); ?>
<h1>Список рубрик</h1>

<div style="width: 260">
<?php if ($this->_tpl_vars['Rubrics']->hasPaginate()): ?>
		<div id="rubric_paging_bottom" class="paging">
			<?php echo $this->_tpl_vars['Rubrics']->showPager(); ?>

			<?php echo '
				<script>
				    new Pager("rubric_paging_top");
				</script>
			'; ?>

		</div>
	<?php endif; ?><br>
	<div class="table_body">
		<table class="text">
			<tr>
				<th>Название</th>
				<th>Описание</th>
				<th>&nbsp;</th>
			</tr>
			<?php $_from = $this->_tpl_vars['Rubrics']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['Rubric']):
?>
			<tr>
			    <td class="mixed"><?php echo $this->_tpl_vars['Rubric']->name; ?>
</td>
			    <td class="mixed"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['Rubric']->info)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 256, "...", false) : smarty_modifier_truncate($_tmp, 256, "...", false)); ?>
</td>
			    <td>
        <A 
           href="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
rubric/edit/?id=<?php echo $this->_tpl_vars['Rubric']->getPk(); ?>
" 
        onclick="go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
rubric/edit/?id=<?php echo $this->_tpl_vars['Rubric']->getPk(); ?>
'); return false;"
        ><img src="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
img/edit_icon.png" title="редактировать" width="16" height="16"></a>
        <a
           href="javascript: void(0);" 
        onclick="if (confirm('Вы действительно желаете удалить турфирму?')) go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
rubric/delete/?id=<?php echo $this->_tpl_vars['Rubric']->getPk(); ?>
'); return false;"
        ><img src="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
img/delete_icon.png" title="удалить" width="16" height="16"></a>
       </td>
       
			</tr>
			<?php endforeach; endif; unset($_from); ?>
		</table>
	</div>
	<?php if ($this->_tpl_vars['Rubrics']->hasPaginate()): ?>
		<div id="rubric_paging_bottom" class="paging">
			<?php echo $this->_tpl_vars['Rubrics']->showPager(); ?>

			<?php echo '
				<script>
				    new Pager("rubric_paging_bottom");
				</script>
			'; ?>

		</div>
	<?php endif; ?>
	<div class="operation">
	    <a href="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
rubric/edit/" onclick="go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
rubric/edit/'); return false;" class="add">добавить</a>
	    <div style="clear: both;"></div>
	    
	</div>
</div>